#ifndef __CONTACT_H_
#define __CONTACT_H_
#include"Telephone.h"
#include<stdio.h>
#include<stdbool.h>
#include<string.h>

struct Contact;

typedef struct Contact Con;

Con *InitCon(int capacity);

void AddContact(Con *c,TCCP telephone);

void Sort(Con *c,bool(*Compare)(TCCP, TCCP));

Tel* Searchname(Con *Array, TCCP name);

Tel* SearchTel(Con *Array, void *data, bool (*IsEqual)(void *, void *));

void RemoveTel(Con *Array,void *data, bool (*IsEqual)(void *, void *));

void FreeCon(Con *c,void (*Free)(TCCP));

void PrintCon(Con *c,void (*Print)(TCCP));

#endif